/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ejb.sessions;

import java.util.ArrayList;
import java.util.Date;
import javax.ejb.Remote;
import models.*;

/**
 *
 * @author simone
 */
@Remote
public interface TDSessionRemote {

    public UserDTO login(String name,String psw);
    public boolean register(String name, String psw,String email);

    
    public boolean createPacket(PacchettoDTO packetDTO);
    public boolean createHotel(hotelDTO hDTO);
    public boolean createTrip(TripDTO trDTO);
    public boolean createTour(tourDTO tDTO);
    
    public boolean bookPacket(PrenotatoDTO ppDTO);
    public boolean updatePacket(PacchettoDTO pDTO);

    public ArrayList<hotelDTO> getAllHotels();
    public ArrayList<stanzaDTO> getAllRooms();
    public ArrayList<tourDTO> getAllTour();
    public ArrayList<TripDTO> getAllTrip();
    public ArrayList<cittaDTO> getAllCity();
    public ArrayList<TravelWayDTO> getAllTravelType();

    public ArrayList<PrenotatoDTO> getBookedPacket(UserDTO user);
    
    public ArrayList<PacchettoDTO> getAllPacketsOnsale();
    public ArrayList<PacchettoDTO> getAllPackets();
    public ArrayList<PacchettoDTO> getAllPacketsWithPredicate(Date retDate, Date depDate,cittaDTO arrC,cittaDTO depC);

}
